]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
dateMenu: Add accessibility to Events and Weather
authorSergio Costas Rodriguez <sergio.costas@canonical.com>
Tue, 24 Jun 2025 16:20:21 +0000 (18:20 +0200)
committerSergio Costas Rodriguez <sergio.costas@canonical.com>
Wed, 25 Jun 2025 07:48:57 +0000 (09:48 +0200)
The Events element, with today events, and the Weather element,
with the weather in our location, lack accessibility names.

This patch fixes it.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3769>

js/ui/dateMenu.js

index 213d72e95c14c2adc34e4f58152a6649f2aafd9e..7e7477a34468c8ec632894378f09ec90a14b85a0 100644 (file)
@@ -132,6 +132,7 @@ class EventsSection extends St.Button {
             style_class: 'events-title',
         });
         this.child.add_child(this._title);
+        this.labelActor = this._title;
 
         this._eventsList = new St.BoxLayout({
             style_class: 'events-list',
@@ -567,6 +568,7 @@ class WeatherSection extends St.Button {
         });
         titleBox.add_child(this._titleLabel);
         box.add_child(titleBox);
+        this.labelActor = this._titleLabel;
 
         this._titleLocation = new St.Label({
             style_class: 'weather-header location',